package org.blue.restful.client.impl;

import java.io.IOException;

import org.blue.restful.client.RestDeserializer;

import com.fasterxml.jackson.databind.ObjectMapper;

public class DefaultDeserializer implements RestDeserializer {
	private final ObjectMapper om = new ObjectMapper();

	@Override
	public Object deserialize(Class<?> clazz, String str) throws IOException {
		return om.readValue(str, clazz);
	}

}
